//
//  WSAccountCell.m
//  CharonTVProject
//
//  Created by karong on 2023/8/15.
//

#import "WSAccountCell.h"
@implementation WSBind
- (NSString *)rightStr {
    return self.isBind?_rightStr:@"未綁定";
}

- (BOOL)isBind {
    return [appUserCenter.bind_third_info.lowercaseString containsString:self.type];
}
@end
@interface WSAccountCell ()
@property (weak, nonatomic) IBOutlet UILabel *leftLabel;
@property (weak, nonatomic) IBOutlet UILabel *rightLabel;
@end

@implementation WSAccountCell
- (void)setDataWithObject:(WSBind *)object {
    self.leftLabel.text = object.leftStr;
    self.rightLabel.text = object.rightStr;
}

- (void)setDataWithBindObject:(WSBind *)object {
    [self setDataWithObject:object];
    self.rightLabel.textColor = object.isBind?UIColor.font_yellow_FCB625:UIColor.font_white_ffffff;
}
@end
